package com.gqb.reflect;

public class reflectclass {
	public static void main(String[] args) throws ClassNotFoundException {
		String str1="abc";
		String str2="abcd";
		 Class class1=str1.getClass();
		 Class class2=str2.getClass();
		 Class class3=String.class;
		 Class class4=Class.forName("java.lang.String");
		 System.out.println(class1);
		 System.out.println(class2);
		 System.out.println(class3);
		 System.out.println(class4);
		 System.out.println(class1==class2);
		 System.out.println(class1==class3);
		 System.out.println(class1==class4);
		 System.out.println(str1==str2);
		 System.out.println(class1.isPrimitive());
		 System.out.println(int.class.isPrimitive());
		 System.out.println(int.class==Integer.TYPE);
	}
}
